package cn.lg.soar.system.api.model;

import cn.lg.soar.common.model.base.VitalDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Getter
@Setter
public class UserQueryDTO extends VitalDTO {

    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "用户名（账号）", example = "test-user")
    private String username;

    @ApiModelProperty(value = "昵称", example = "测试用户")
    private String nickname;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "用户类型")
    private Integer userType;

    @ApiModelProperty(value = "当前组织机构Id")
    private Long orgId;

    @ApiModelProperty(value = "登录失败次数")
    private Integer pwdErrorCount;

    @ApiModelProperty(value = "最后登录时间")
    private LocalDateTime lastLoginDate;

    @ApiModelProperty(value = "锁定的")
    private Boolean locked;

    @ApiModelProperty(value = "当前所属租户id")
    private Integer currentTenantId;

}
